package org.dromara.xhlj.domain.vo;

import org.dromara.xhlj.domain.XhljActivityDiscussion;
import org.dromara.xhlj.domain.XhljActivity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreType;
import com.fasterxml.jackson.annotation.JsonInclude;
import org.dromara.common.core.utils.tree.TreeCruxField;
import org.dromara.wx.domain.WxUser;
import org.dromara.wx.domain.vo.WxUserVo;
import org.dromara.system.domain.SysUser;
import org.dromara.system.domain.vo.SysUserVo;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.springframework.transaction.annotation.Transactional;
import org.dromara.common.core.utils.tree.TreeCruxEnum;
import java.util.ArrayList;
import java.util.Date;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 会议交流视图对象 xhlj_activity_discussion
 *
 * @author yf
 * @date 2024-07-28
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = XhljActivityDiscussion.class)
public class XhljActivityDiscussionVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 讨论id
     */
    @ExcelProperty(value = "讨论id")
    private Integer discussionId;
    /**
     * 讨论内容
     */
    @ExcelProperty(value = "讨论内容")
    private String discussionContent;
    /**
     * 父亲讨论id
     */
    @ExcelProperty(value = "父亲讨论id")
    private Integer parentDiscussionId;
    /**
     * 创建人wx_user（西湖论剑用户）
     */
    @ExcelProperty(value = "创建人wx_user")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = WxUser.TRANS_ID_TO_VO, mapper = "createBy")
    private WxUserVo wxUser;
    private Integer createBy;
    /**
     * 活动id
     */
    @ExcelProperty(value = "活动id")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    @Translation(type = XhljActivity.TRANS_ID_TO_VO, mapper = "activityId")
    private XhljActivityVo activity;
    private Integer activityId;
    /**
     * 点赞量
     */
    @ExcelProperty(value = "点赞量")
    private Integer thumbsUpCount;
    /**
     * 创建时间
     */
    @ExcelProperty(value = "创建时间")
    private Date createTime;
     /**
      * 子菜单
      */
     @JsonIgnore
     @TreeCruxField(TreeCruxEnum.CHILD_LIST)
     private List<XhljActivityDiscussion> children = new ArrayList<>();
}
